package guoanmaker.provider.business.model;

import guoanmaker.provider.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * DESC:
 * Created by JTing on 2017/12/14 9:08
 */
@Entity
@Table(name = "t_provide_shop_follow")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProvideShopFollow extends IdEntity {
    @ManyToOne
    @JoinColumn(name = "shop_id")
    private ProvideShop provideShop;
    private String userId;
    private Date stateTime;   //关注或者取消关注时间
    private Integer state;  //0 取消关注  1关注
}
